home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / FormP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.4 KB  |  117 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: FormP.h,v $ $Revision: 1.18 $ $Date: 92/05/14 12:51:54 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. #ifndef _XmFormP_h
  11. #define _XmFormP_h
  12.  
  13.  
  14. #include <Xm/Form.h>
  15. #include <Xm/BulletinBP.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. typedef struct _XmFormAttachmentRec 
  22. {
  23.    unsigned char type;
  24.    Widget w;
  25.    int percent;
  26.    int offset;
  27.    int value;
  28.    int tempValue;
  29. } XmFormAttachmentRec, * XmFormAttachment;
  30.  
  31.  
  32. #ifdef att
  33. #undef att
  34. #endif
  35.  
  36. typedef struct _XmFormConstraintPart
  37. {
  38.    XmFormAttachmentRec att[4];
  39.    Widget next_sibling;
  40.    Boolean sorted;
  41.    Boolean resizable;
  42.    Dimension preferred_width, preferred_height;
  43. } XmFormConstraintPart, * XmFormConstraint;
  44.  
  45. typedef struct _XmFormConstraintRec
  46. {
  47.    XmManagerConstraintPart manager;
  48.    XmFormConstraintPart    form;
  49. } XmFormConstraintRec, * XmFormConstraintPtr;
  50.  
  51.  
  52. /*  Form class structure  */
  53.  
  54. typedef struct _XmFormClassPart
  55. {
  56.    int foo;    /*  No new fields needed  */
  57. } XmFormClassPart;
  58.  
  59.  
  60. /*  Full class record declaration for form class  */
  61.  
  62. typedef struct _XmFormClassRec
  63. {
  64.    CoreClassPart       core_class;
  65.    CompositeClassPart  composite_class;
  66.    ConstraintClassPart constraint_class;
  67.    XmManagerClassPart  manager_class;
  68.    XmBulletinBoardClassPart  bulletin_board_class;
  69.    XmFormClassPart     form_class;
  70. } XmFormClassRec;
  71.  
  72. externalref XmFormClassRec xmFormClassRec;
  73.  
  74.  
  75. /*  The Form instance record  */
  76.  
  77. typedef struct _XmFormPart
  78. {
  79.    Dimension horizontal_spacing;
  80.    Dimension vertical_spacing;
  81.    int fraction_base;
  82.    Boolean rubber_positioning;
  83.    Widget first_child;
  84.    Boolean initial_width, initial_height;
  85.    Boolean processing_constraints;
  86. } XmFormPart;
  87.  
  88.  
  89. /*  Full instance record declaration  */
  90.  
  91. typedef struct _XmFormRec
  92. {
  93.    CorePart      core;
  94.    CompositePart  composite;
  95.    ConstraintPart constraint;
  96.    XmManagerPart  manager;
  97.    XmBulletinBoardPart  bulletin_board;
  98.    XmFormPart     form;
  99. } XmFormRec;
  100.  
  101. /********    Private Function Declarations    ********/
  102. #ifdef _NO_PROTO
  103.  
  104.  
  105. #else
  106.  
  107.  
  108. #endif /* _NO_PROTO */
  109. /********    End Private Function Declarations    ********/
  110.  
  111. #ifdef __cplusplus
  112. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  113. #endif
  114.  
  115. #endif /* _XmFormP_h */
  116. /* DON'T ADD ANYTHING AFTER THIS #endif */
  117.